package com.blinddate.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.blinddate.orm.BdEducationBackground;

public class EducationBackgroundDAO extends HibernateDaoSupport implements
		com.blinddate.dao.EducationBackgroundDAO {

	@Override
	public List<BdEducationBackground> getAllEducationBackgrounds() {
		List<BdEducationBackground> educationBackgrounds = null;
		try{
			String queryCondition = "from BdEducationBackgound";
			educationBackgrounds = (List<BdEducationBackground>)this.getHibernateTemplate().find(queryCondition);
		}catch(Exception e){
			educationBackgrounds = null;
			e.printStackTrace();
		}
		return educationBackgrounds;
	}

}
